﻿<phone:PhoneApplicationPage xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            mc:Ignorable="d"
                            d:DesignWidth="480"
                            d:DesignHeight="800"
                            x:Class="PostIt.DetailsPage"
                            d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Portrait"
                            Orientation="Portrait"
                            shell:SystemTray.IsVisible="True">

    <!--Data context is set to sample data above and first item in sample data collection below and LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot"
          Background="Transparent"
          d:DataContext="{Binding Items[0]}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!--TitlePanel is the name of the application and page title-->
        <StackPanel x:Name="TitlePanel"
                    Grid.Row="0"
                    Margin="12,9,0,40">
            <TextBlock x:Name="PageTitle"
                       Text="Post It"
                       Style="{StaticResource PhoneTextNormalStyle}" />
            <TextBlock x:Name="ListTitle"
                       Text="{Binding tileText}"
                       Margin="9,-8,0,0"
                       Style="{StaticResource PhoneTextTitle1Style}"
                       Height="84" />
        </StackPanel>

        <!--ContentPanel contains details text. Place additional content here-->
        <Grid x:Name="ContentPanel"
              Grid.Row="1"
              Margin="12,0,12,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="54*" />
                <ColumnDefinition />
                <ColumnDefinition Width="173*" />
            </Grid.ColumnDefinitions>
            <Rectangle Fill="{Binding BackColor}"
                       HorizontalAlignment="Left"
                       Height="500"
                       Margin="14,10,0,0"
                       Stroke="Black"
                       VerticalAlignment="Top"
                       Width="424"
                       Grid.ColumnSpan="3"
                       RadiusX="15"
                       RadiusY="15" />
            <TextBlock x:Name="ContentText"
                       Text="{Binding Detail}"
                       TextWrapping="Wrap"
                       Margin="52,90,0,60"
                       Style="{StaticResource PhoneTextTitle3Style}"
                       Grid.ColumnSpan="3"
                       FontSize="24"
                       Foreground="#FFFBF7F7"
                       HorizontalAlignment="Left"
                       Width="350" />
            <Rectangle Grid.ColumnSpan="3"
                       Fill="White"
                       HorizontalAlignment="Left"
                       Height="35"
                       Margin="34,34,0,0"
                       RadiusY="15"
                       RadiusX="15"
                       Stroke="Black"
                       VerticalAlignment="Top"
                       Width="384" />
            <TextBlock HorizontalAlignment="Left"
                       Height="35"
                       Margin="56,36,0,0"
                       TextWrapping="Wrap"
                       VerticalAlignment="Top"
                       Width="74"
                       Grid.ColumnSpan="3"
                       Foreground="Black"
                       Text="Due on " />
            <TextBlock Grid.Column="2"
                       HorizontalAlignment="Left"
                       Height="35"
                       Margin="25,36,0,0"
                       TextWrapping="Wrap"
                       Text="{Binding DueDate}"
                       VerticalAlignment="Top"
                       Width="245"
                       Foreground="Black" />
        </Grid>
    </Grid>

    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True"
                              IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/icons/appbar.home.rest.png"
                                            Text="Home"
                                            Click="ApplicationBarIconButton_Click_1" />

            <shell:ApplicationBarIconButton IconUri="/icons/edit.png"
                                            Text="Edit"
                                            Click="ApplicationBarIconButton_Click_2" />
            <!--<shell:ApplicationBarMenuItem Text="MenuItem 1" />-->

            <!--</shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
